import { RouteRecordRaw, RouterView } from 'vue-router'

import { redirectPath } from '../help'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/tag-manage',
    component: RouterView,
    meta: { title: '标签管理', auth: ['admin-tag-manage'] },
    redirect: redirectPath,
    children: [
      {
        path: '/tag-manage/list',
        name: 'tag-manage-list',
        component: () => import('@/views/admin/tag-manage/list/index.vue'),
        meta: { title: '标签管理', auth: ['admin-tag-manage'] }
      }
    ]
  }
]

export default routes
